/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.miami.unix_storage.xmlinventory.classes;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
/**
 *
 * @author alorenzo
 */
public class XMLInventoryLogerMain {
    public static void main (String[] args){
        Properties prop = new Properties();
        
/*    Include the below code once the application has been comleted to set     
 *    initial enviormentvariables for the application.
 * 
 * try {
            prop.setProperty("database", "localhost");
            prop.setProperty("dbuser", "whoever");
            prop.setProperty("dbpassword", "yesh");
            prop.store(new FileOutputStream("Config.Properties"), null);
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    } */
        XMLInventoryWriter write = new XMLInventoryWriter("/Users/alex/"
                + "NetBeansProjects/XMLInventory", "alex.txt");
        CurrentTime currentTime = new CurrentTime();
        write.setToWrite("This was entered on: "+ 
                currentTime.getCurrentDateAndTimeAsString() + "\n");
        write.WriteToFile();
        System.out.println(write.getPathFile());

}
}
